import request from "@/utils/request";

/**
 * 获取企业审核列表
 */
export const getCompanyReviewListApi = (data) => {
    return request({
        url: "/company/company/admin/resume/list",
        method: "post",
        data
    })
}

/**
 * 获取企业信息列表
 */
export const getCompanyInfoListApi = (data) => {
    return request({
        url: "/company/company/admin/company/list",
        method: "post",
        data
    })
}

/**
 * 获取企业审核详情
 */
export const getCompanyReviewDetailApi = (reviewId) => {
    return request({
        url: `/company/company/admin/review/detail/${reviewId}`,
        method: "get"
    })
}

/**
 * 提交企业审核
 */
export const submitCompanyReviewApi = (data) => {
    return request({
        url: "/company/company/admin/review",
        method: "post",
        data
    })
}

/**
 * 获取职位举报列表
 */
export const getJobReportListApi = (data) => {
    return request({
        url: "/work/job/admin/report/list",
        method: "post",
        data
    })
}

/**
 * 获取举报详情
 */
export const getJobReportDetailApi = (reportId) => {
    return request({
        url: `/work/job/admin/report/detail?reportId=${reportId}`,
        method: "get"
    })
}

/**
 * 同意举报
 */
export const agreeJobReportApi = (data) => {
    return request({
        url: "/work/job/admin/job/report/argee",
        method: "post",
        data
    })
}

/**
 * 忽略举报
 */
export const ignoreJobReportApi = (data) => {
    return request({
        url: "/work/job/admin/job/report/ignore",
        method: "post",
        data
    })
}

/**
 * 获取职位详情
 */
export const getJobDetailApi = (jobId) => {
    return request({
        url: `/work/job/admin/job/${jobId}`,
        method: "get"
    })
}

/**
 * 获取招聘者详情
 */
export const getHrDetailApi = (hrId) => {
    return request({
        url: `/company/company/admin/getHrWithCompanyInfo?hrId=${hrId}`,
        method: "get"
    })
}